<head>
<meta charset="utf-8">
  <!-- <meta name="renderer" content="webkit"> -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  <title id="website_title">Admin IPTV 管理 - {{ navtitle }}</title>
  <!-- Favicon -->
  <link rel="shortcut icon" type="image/vnd.microsoft.icon" id="icon_href" href="{{ url_for('static', filename='system/admin/images/logo.png') }}">
  
  <!-- CSS 文件 -->
  <link rel="stylesheet" href="{{ url_for('static', filename='system/component/pear/css/pear.css') }}">
  <link rel="stylesheet" href="{{ url_for('static', filename='system/component/pear/css/icon.css') }}">
  <link rel="stylesheet" href="{{ url_for('static', filename='index/css/main.css') }}">

</head>

<!-- header -->
<!-- 导航栏 -->
<div class="ew-header">
  <!-- Logo -->
  <img class="layui-logo" src="{{ url_for('static', filename='system/admin/images/logo.png') }}" alt="Logo" />
  
  <!-- 导航组 -->
  <div class="ew-nav-group">
      <!-- 移动端菜单按钮 -->
      <div class="nav-toggle">
          <i class="layui-icon layui-icon-more-vertical"></i>
      </div>
      
      <!-- 导航菜单 -->
      <ul class="layui-nav" lay-filter="ew-header-nav">
          {% for item in nav_menu %}
              {% if item.children %}
                  <li class="layui-nav-item {{ 'layui-this' if item.name == navtitle }}" id="{{ item.name }}">
                      <a href="javascript:;">{{ item.name }}</a>
                      <dl class="layui-nav-child">
                          {% for child in item.children %}
                              <dd><a href="{{ child.url }}">{{ child.name }}</a></dd>
                          {% endfor %}
                      </dl>
                  </li>
              {% else %}
                  <li class="layui-nav-item {{ 'layui-this' if item.name == navtitle }}" id="{{ item.name }}">
                      <a href="{{ item.url }}">{{ item.name }}</a>
                  </li>
              {% endif %}
          {% endfor %}
          
          <!-- 用户信息 -->
          <li class="layui-nav-item user-item">
              {% if user.is_authenticated %}
                  <a href="/admin">
                      <span id="user_name">{{ user.username }}</span>
                  </a>
              {% else %}
                  <a href="/admin">
                      <i class="layui-icon layui-icon-username"></i>
                      <span id="user_name">访客</span>
                  </a>
              {% endif %}
          </li>
      </ul>
  </div>
</div><!-- header end -->

 

